Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pos validator uptime #2379

Merged
merged 39 commits into from
Dec 12, 2024
Merged

Pos validator uptime #2379

merged 39 commits into from
Dec 12, 2024

Conversation

arturrez
Copy link
Collaborator

Why this should be merged

adds PoS proof of uptime support for removeValitor

How this works

if uptime is not provided, it's calculated from evm getCurrentValdators api.
Signature aggregator is used to sign proof of uptime msg which is submitted to ValidatorManager smart contract

How this was tested

./bin/avalanche node local start  --num-nodes 7 --etna-devnet local7
./bin/avalanche blockchain create pos7 --proof-of-stake  --force  --evm --reward-basis-points 10000000 // make sure that validator gets reward even after short staking period
./bin/avalanche blockchain deploy pos7 --cluster local7 --bootstrap-endpoints http://127.0.0.1:9650/,http://127.0.0.1:9652/,http://127.0.0.1:9654/,http://127.0.0.1:9656/,http://127.0.0.1:9658/  --convert-only
./bin/avalanche node local track local7 pos7
./bin/avalanche contract initValidatorManager pos7  --cluster local7
./bin/avalanche blockchain addValidator pos7  --cluster local7 --node-endpoint http://127.0.0.1:9660
sleep 120s
./bin/avalanche blockchain removeValidator pos7  --cluster local7 --node-endpoint http://127.0.0.1:9660

How is this documented

@arturrez arturrez requested a review from a team as a code owner November 27, 2024 00:13
@meaghanfitzgerald meaghanfitzgerald linked an issue Dec 4, 2024 that may be closed by this pull request
pkg/utils/net.go Outdated Show resolved Hide resolved
pkg/utils/net.go Outdated Show resolved Hide resolved
pkg/utils/net_test.go Show resolved Hide resolved
pkg/utils/staking.go Outdated Show resolved Hide resolved
pkg/utils/staking.go Outdated Show resolved Hide resolved
pkg/utils/staking.go Outdated Show resolved Hide resolved
pkg/utils/staking.go Outdated Show resolved Hide resolved
pkg/validatormanager/validatormanager.go Outdated Show resolved Hide resolved
cmd/blockchaincmd/remove_validator.go Show resolved Hide resolved
cmd/blockchaincmd/remove_validator.go Outdated Show resolved Hide resolved
@arturrez arturrez merged commit 76ccb76 into main Dec 12, 2024
37 checks passed
@arturrez arturrez deleted the pos-validator-uptime branch December 12, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Enable L1 Validator Removal Using Uptime Tracking
3 participants